package com.tianshi.yingxue.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.util.Date;

@Data
@HeadRowHeight(20)
@ContentRowHeight(15)
public class UserExportVO {

    @ExcelProperty("用户ID")
    @ColumnWidth(10)
    private Integer id;

    @ExcelProperty("用户名")
    @ColumnWidth(15)
    private String username;

    @ExcelProperty("头像URL")
    @ColumnWidth(30)
    private String headImg;

    @ExcelProperty("手机号")
    @ColumnWidth(15)
    private String phone;

    @ExcelProperty("签名")
    @ColumnWidth(20)
    private String sign;

    @ExcelProperty("微信")
    @ColumnWidth(15)
    private String wechat;

    @ExcelProperty("状态")
    @ColumnWidth(10)
    private String status;

    @ExcelProperty("注册时间")
    @ColumnWidth(20)
    @DateTimeFormat("yyyy-MM-dd")
    private Date createTime;

    @ExcelProperty("性别")
    @ColumnWidth(10)
    private String sex;

    @ExcelProperty("城市")
    @ColumnWidth(15)
    private String city;
}
